const getters = {
  double: state => state.count * 2,
  replaceTel: state => state.number.tel.replace(
    /\d{4}(?=\d{4}$)/g,
    Array(4)
      .fill('*')
      .join('')
  ),
  showNum: state => {
    return state.number.num + state.count
  }
}

export default getters
